home *** CD-ROM | disk | FTP | other *** search
/ Champak 122 / Vol 122.iso / games / gem_stri.swf / scripts / __Packages / mx / styles / CSSSetStyle.as next >
Encoding:
Text File  |  2011-01-06  |  15.8 KB  |  365 lines

  1. var ┬º\x01┬º = 370;
  2. while(true)
  3. {
  4.    if(eval("\x01") == 370)
  5.    {
  6.       set("\x01",eval("\x01") + 396);
  7.       ┬º┬ºpush(true);
  8.    }
  9.    else
  10.    {
  11.       if(eval("\x01") == 500)
  12.       {
  13.          break;
  14.       }
  15.       if(eval("\x01") == 766)
  16.       {
  17.          set("\x01",eval("\x01") - 266);
  18.          if(┬º┬ºpop())
  19.          {
  20.             set("\x01",eval("\x01") + 160);
  21.          }
  22.       }
  23.       else
  24.       {
  25.          if(eval("\x01") == 660)
  26.          {
  27.             set("\x01",eval("\x01") + 187);
  28.             if(!_global.mx)
  29.             {
  30.                _global.mx = new Object();
  31.             }
  32.             ┬º┬ºpop();
  33.             if(!_global.mx.styles)
  34.             {
  35.                _global.mx.styles = new Object();
  36.             }
  37.             ┬º┬ºpop();
  38.             if(!_global.mx.styles.CSSSetStyle)
  39.             {
  40.                var _loc2_ = mx.styles.CSSSetStyle = function()
  41.                {
  42.                }.prototype;
  43.                _loc2_._setStyle = function(styleProp, newValue)
  44.                {
  45.                   this[styleProp] = newValue;
  46.                   if(mx.styles.StyleManager.TextStyleMap[styleProp] != undefined)
  47.                   {
  48.                      if(styleProp == "color")
  49.                      {
  50.                         if(isNaN(newValue))
  51.                         {
  52.                            newValue = mx.styles.StyleManager.getColorName(newValue);
  53.                            this[styleProp] = newValue;
  54.                            if(newValue == undefined)
  55.                            {
  56.                               return undefined;
  57.                            }
  58.                         }
  59.                      }
  60.                      _level0.changeTextStyleInChildren(styleProp);
  61.                      return undefined;
  62.                   }
  63.                   if(mx.styles.StyleManager.isColorStyle(styleProp))
  64.                   {
  65.                      if(isNaN(newValue))
  66.                      {
  67.                         newValue = mx.styles.StyleManager.getColorName(newValue);
  68.                         this[styleProp] = newValue;
  69.                         if(newValue == undefined)
  70.                         {
  71.                            return undefined;
  72.                         }
  73.                      }
  74.                      if(styleProp == "themeColor")
  75.                      {
  76.                         var _loc7_ = mx.styles.StyleManager.colorNames.haloBlue;
  77.                         var _loc6_ = mx.styles.StyleManager.colorNames.haloGreen;
  78.                         var _loc8_ = mx.styles.StyleManager.colorNames.haloOrange;
  79.                         var _loc4_ = {};
  80.                         _loc4_[_loc7_] = 12188666;
  81.                         _loc4_[_loc6_] = 13500353;
  82.                         _loc4_[_loc8_] = 16766319;
  83.                         var _loc5_ = {};
  84.                         _loc5_[_loc7_] = 13958653;
  85.                         _loc5_[_loc6_] = 14942166;
  86.                         _loc5_[_loc8_] = 16772787;
  87.                         var _loc9_ = _loc4_[newValue];
  88.                         var _loc10_ = _loc5_[newValue];
  89.                         if(_loc9_ == undefined)
  90.                         {
  91.                            _loc9_ = newValue;
  92.                         }
  93.                         if(_loc10_ == undefined)
  94.                         {
  95.                            _loc10_ = newValue;
  96.                         }
  97.                         this.setStyle("selectionColor",_loc9_);
  98.                         this.setStyle("rollOverColor",_loc10_);
  99.                      }
  100.                      _level0.changeColorStyleInChildren(this.styleName,styleProp,newValue);
  101.                   }
  102.                   else
  103.                   {
  104.                      if(styleProp == "backgroundColor" && isNaN(newValue))
  105.                      {
  106.                         newValue = mx.styles.StyleManager.getColorName(newValue);
  107.                         this[styleProp] = newValue;
  108.                         if(newValue == undefined)
  109.                         {
  110.                            return undefined;
  111.                         }
  112.                      }
  113.                      _level0.notifyStyleChangeInChildren(this.styleName,styleProp,newValue);
  114.                   }
  115.                };
  116.                _loc2_.changeTextStyleInChildren = function(styleProp)
  117.                {
  118.                   var _loc4_ = getTimer();
  119.                   var _loc5_ = undefined;
  120.                   for(_loc5_ in this)
  121.                   {
  122.                      var _loc2_ = this[_loc5_];
  123.                      if(_loc2_._parent == this)
  124.                      {
  125.                         if(_loc2_.searchKey != _loc4_)
  126.                         {
  127.                            if(_loc2_.stylecache != undefined)
  128.                            {
  129.                               delete _loc2_.stylecache.tf;
  130.                               delete _loc2_.stylecache[styleProp];
  131.                            }
  132.                            _loc2_.invalidateStyle(styleProp);
  133.                            _loc2_.changeTextStyleInChildren(styleProp);
  134.                            _loc2_.searchKey = _loc4_;
  135.                         }
  136.                      }
  137.                   }
  138.                };
  139.                _loc2_.changeColorStyleInChildren = function(sheetName, colorStyle, newValue)
  140.                {
  141.                   var _loc6_ = getTimer();
  142.                   var _loc7_ = undefined;
  143.                   for(_loc7_ in this)
  144.                   {
  145.                      var _loc2_ = this[_loc7_];
  146.                      if(_loc2_._parent == this)
  147.                      {
  148.                         if(_loc2_.searchKey != _loc6_)
  149.                         {
  150.                            if(_loc2_.getStyleName() == sheetName || sheetName == undefined || sheetName == "_global")
  151.                            {
  152.                               if(_loc2_.stylecache != undefined)
  153.                               {
  154.                                  delete _loc2_.stylecache[colorStyle];
  155.                               }
  156.                               if(typeof _loc2_._color == "string")
  157.                               {
  158.                                  if(_loc2_._color == colorStyle)
  159.                                  {
  160.                                     var _loc4_ = _loc2_.getStyle(colorStyle);
  161.                                     if(colorStyle == "color")
  162.                                     {
  163.                                        if(this.stylecache.tf.color != undefined)
  164.                                        {
  165.                                           this.stylecache.tf.color = _loc4_;
  166.                                        }
  167.                                     }
  168.                                     _loc2_.setColor(_loc4_);
  169.                                  }
  170.                               }
  171.                               else if(_loc2_._color[colorStyle] != undefined)
  172.                               {
  173.                                  if(typeof _loc2_ != "movieclip")
  174.                                  {
  175.                                     _loc2_._parent.invalidateStyle();
  176.                                  }
  177.                                  else
  178.                                  {
  179.                                     _loc2_.invalidateStyle(colorStyle);
  180.                                  }
  181.                               }
  182.                            }
  183.                            _loc2_.changeColorStyleInChildren(sheetName,colorStyle,newValue);
  184.                            _loc2_.searchKey = _loc6_;
  185.                         }
  186.                      }
  187.                   }
  188.                };
  189.                _loc2_.notifyStyleChangeInChildren = function(sheetName, styleProp, newValue)
  190.                {
  191.                   var _loc5_ = getTimer();
  192.                   var _loc6_ = undefined;
  193.                   for(_loc6_ in this)
  194.                   {
  195.                      var _loc2_ = this[_loc6_];
  196.                      if(_loc2_._parent == this)
  197.                      {
  198.                         if(_loc2_.searchKey != _loc5_)
  199.                         {
  200.                            if(_loc2_.styleName == sheetName || _loc2_.styleName != undefined && typeof _loc2_.styleName == "movieclip" || sheetName == undefined)
  201.                            {
  202.                               if(_loc2_.stylecache != undefined)
  203.                               {
  204.                                  delete _loc2_.stylecache[styleProp];
  205.                                  delete _loc2_.stylecache.tf;
  206.                               }
  207.                               delete _loc2_.enabledColor;
  208.                               _loc2_.invalidateStyle(styleProp);
  209.                            }
  210.                            _loc2_.notifyStyleChangeInChildren(sheetName,styleProp,newValue);
  211.                            _loc2_.searchKey = _loc5_;
  212.                         }
  213.                      }
  214.                   }
  215.                };
  216.                _loc2_.setStyle = function(styleProp, newValue)
  217.                {
  218.                   if(this.stylecache != undefined)
  219.                   {
  220.                      delete this.stylecache[styleProp];
  221.                      delete this.stylecache.tf;
  222.                   }
  223.                   this[styleProp] = newValue;
  224.                   if(mx.styles.StyleManager.isColorStyle(styleProp))
  225.                   {
  226.                      if(isNaN(newValue))
  227.                      {
  228.                         newValue = mx.styles.StyleManager.getColorName(newValue);
  229.                         this[styleProp] = newValue;
  230.                         if(newValue == undefined)
  231.                         {
  232.                            return undefined;
  233.                         }
  234.                      }
  235.                      if(styleProp == "themeColor")
  236.                      {
  237.                         var _loc10_ = mx.styles.StyleManager.colorNames.haloBlue;
  238.                         var _loc9_ = mx.styles.StyleManager.colorNames.haloGreen;
  239.                         var _loc11_ = mx.styles.StyleManager.colorNames.haloOrange;
  240.                         var _loc6_ = {};
  241.                         _loc6_[_loc10_] = 12188666;
  242.                         _loc6_[_loc9_] = 13500353;
  243.                         _loc6_[_loc11_] = 16766319;
  244.                         var _loc7_ = {};
  245.                         _loc7_[_loc10_] = 13958653;
  246.                         _loc7_[_loc9_] = 14942166;
  247.                         _loc7_[_loc11_] = 16772787;
  248.                         var _loc12_ = _loc6_[newValue];
  249.                         var _loc13_ = _loc7_[newValue];
  250.                         if(_loc12_ == undefined)
  251.                         {
  252.                            _loc12_ = newValue;
  253.                         }
  254.                         if(_loc13_ == undefined)
  255.                         {
  256.                            _loc13_ = newValue;
  257.                         }
  258.                         this.setStyle("selectionColor",_loc12_);
  259.                         this.setStyle("rollOverColor",_loc13_);
  260.                      }
  261.                      if(typeof this._color == "string")
  262.                      {
  263.                         if(this._color == styleProp)
  264.                         {
  265.                            if(styleProp == "color")
  266.                            {
  267.                               if(this.stylecache.tf.color != undefined)
  268.                               {
  269.                                  this.stylecache.tf.color = newValue;
  270.                               }
  271.                            }
  272.                            this.setColor(newValue);
  273.                         }
  274.                      }
  275.                      else if(this._color[styleProp] != undefined)
  276.                      {
  277.                         this.invalidateStyle(styleProp);
  278.                      }
  279.                      this.changeColorStyleInChildren(undefined,styleProp,newValue);
  280.                   }
  281.                   else
  282.                   {
  283.                      if(styleProp == "backgroundColor" && isNaN(newValue))
  284.                      {
  285.                         newValue = mx.styles.StyleManager.getColorName(newValue);
  286.                         this[styleProp] = newValue;
  287.                         if(newValue == undefined)
  288.                         {
  289.                            return undefined;
  290.                         }
  291.                      }
  292.                      this.invalidateStyle(styleProp);
  293.                   }
  294.                   if(mx.styles.StyleManager.isInheritingStyle(styleProp) || styleProp == "styleName")
  295.                   {
  296.                      var _loc8_ = undefined;
  297.                      var _loc5_ = newValue;
  298.                      if(styleProp == "styleName")
  299.                      {
  300.                         _loc8_ = typeof newValue != "string" ? _loc5_ : _global.styles[newValue];
  301.                         _loc5_ = _loc8_.themeColor;
  302.                         if(_loc5_ != undefined)
  303.                         {
  304.                            _loc8_.rollOverColor = _loc8_.selectionColor = _loc5_;
  305.                         }
  306.                      }
  307.                      this.notifyStyleChangeInChildren(undefined,styleProp,newValue);
  308.                   }
  309.                };
  310.                mx.styles.CSSSetStyle = function()
  311.                {
  312.                }.enableRunTimeCSS = function()
  313.                {
  314.                };
  315.                mx.styles.CSSSetStyle = function()
  316.                {
  317.                }.classConstruct = function()
  318.                {
  319.                   var _loc2_ = MovieClip.prototype;
  320.                   var _loc3_ = mx.styles.CSSSetStyle.prototype;
  321.                   mx.styles.CSSStyleDeclaration.prototype.setStyle = _loc3_._setStyle;
  322.                   _loc2_.changeTextStyleInChildren = _loc3_.changeTextStyleInChildren;
  323.                   _loc2_.changeColorStyleInChildren = _loc3_.changeColorStyleInChildren;
  324.                   _loc2_.notifyStyleChangeInChildren = _loc3_.notifyStyleChangeInChildren;
  325.                   _loc2_.setStyle = _loc3_.setStyle;
  326.                   _global.ASSetPropFlags(_loc2_,"changeTextStyleInChildren",1);
  327.                   _global.ASSetPropFlags(_loc2_,"changeColorStyleInChildren",1);
  328.                   _global.ASSetPropFlags(_loc2_,"notifyStyleChangeInChildren",1);
  329.                   _global.ASSetPropFlags(_loc2_,"setStyle",1);
  330.                   var _loc4_ = TextField.prototype;
  331.                   _loc4_.setStyle = _loc2_.setStyle;
  332.                   _loc4_.changeTextStyleInChildren = _loc3_.changeTextStyleInChildren;
  333.                   return true;
  334.                };
  335.                mx.styles.CSSSetStyle = function()
  336.                {
  337.                }.classConstructed = mx.styles.CSSSetStyle.classConstruct();
  338.                mx.styles.CSSSetStyle = function()
  339.                {
  340.                }.CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
  341.                ┬º┬ºpush(ASSetPropFlags(mx.styles.CSSSetStyle.prototype,null,1));
  342.             }
  343.             ┬º┬ºpop();
  344.          }
  345.       }
  346.    }
  347. }
  348. set("\x01",eval("\x01") + 160);
  349. ┬º┬ºpop()[┬º┬ºpop()] = ┬º┬ºpop();
  350. eval(┬º┬ºconstant(1))[┬º┬ºconstant(33)][┬º┬ºconstant(34)][┬º┬ºconstant(10)][┬º┬ºconstant(13)] = function()
  351. {
  352.    var _loc2_ = this[┬º┬ºconstant(48)](┬º┬ºconstant(47));
  353.    if(_loc2_ == undefined)
  354.    {
  355.       _loc2_ = 8453965;
  356.    }
  357.    var _loc3_ = this[┬º┬ºconstant(36)][┬º┬ºconstant(37)];
  358.    _loc3_[┬º┬ºconstant(14)](this[┬º┬ºconstant(50)] + 4,this[┬º┬ºconstant(49)] + 4,0,100,_loc2_);
  359.    _loc3_[┬º┬ºconstant(31)](this[┬º┬ºconstant(52)] - 2,this[┬º┬ºconstant(51)] - 2);
  360. };
  361. eval(┬º┬ºconstant(53))[┬º┬ºconstant(10)][┬º┬ºconstant(35)] = eval(┬º┬ºconstant(1))[┬º┬ºconstant(33)][┬º┬ºconstant(34)][┬º┬ºconstant(10)][┬º┬ºconstant(35)];
  362. eval(┬º┬ºconstant(53))[┬º┬ºconstant(10)][┬º┬ºconstant(13)] = eval(┬º┬ºconstant(1))[┬º┬ºconstant(33)][┬º┬ºconstant(34)][┬º┬ºconstant(10)][┬º┬ºconstant(13)];
  363. eval(┬º┬ºconstant(1))[┬º┬ºconstant(3)][┬º┬ºconstant(4)][┬º┬ºconstant(5)][┬º┬ºconstant(10)][┬º┬ºconstant(24)] = eval(┬º┬ºconstant(1))[┬º┬ºconstant(3)][┬º┬ºconstant(4)][┬º┬ºconstant(54)][┬º┬ºconstant(10)][┬º┬ºconstant(24)];
  364. return true;
  365.